home *** CD-ROM | disk | FTP | other *** search
- {--------------------------BREAK------------------------
-
- {The BREAK macro draws a break line between two given points.
- {The macro adjusts for the overall distance between points by
- {making the jog larger or smaller. The jog is drawn on class and
- {layer 105.
-
- {User locates the two endpoints for the break line.
- PROMPT Prompt=`Pick First Point` Var=#P1 Type=Coor
- PROMPT Prompt=`Pick Second Point` Var=#P2 Type=Coor
-
- {System measures the distance and angle between points entered.
- DS,P Silent [#P1|#P2|;]
- #DS = %DS.D {Total distance between points
- #AN = %DS.A {Angle created by the two points
- #HD = %DS.D / 2 {Total distance divided by 2
- #LG = .5 {Starting value for the jog if overall distance is
- {less than 10.
-
- {System determines which size jog to use in comparison to the
- {overall distance between points.
- IF (#DS > 10), #LG=.750
- IF (#DS > 15), #LG=1.00
- IF (#DS > 20), #LG=1.25
- IF (#DS > 30), #LG=1.50
-
- {System draws in line with jog.
- LI Cl=105 La=105 Pe=0 [#P1|P,#HD-(#LG/2),#AN|P,#LG,#AN+75]\
- [P,#LG*2,#AN-75|P,#LG,#AN+75|#P2|;]
-
-
- RETURN
-